﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BinaryPasswords
{
    class Program
    {
        static int stars(string binaryNumber)
        {
            int counter = 0;
            int size = binaryNumber.Length;
            for (int index = 0; index < size; index++)
            {
                if (binaryNumber[index] == '*')
                {
                    counter++;
                }
            }
            return counter;
        }

        static void Main(string[] args)
        {
           // string binaryNumber = "************************************************************";
          //  Console.WriteLine(binaryNumber.Length);
            string binaryNumber = Console.ReadLine();
            int numberOfStars = stars(binaryNumber);
           // Console.WriteLine(binaryNumber.Length);
            //double numberOfVariants = Math.Pow(2, numberOfStars);


            if (binaryNumber.Length == 0)
            {
                Console.WriteLine(0);
            }
           
            else
            {
                Console.WriteLine((ulong)Math.Pow(2, numberOfStars));
            }
           // Console.WriteLine((ulong)Math.Pow(2, 60));
            

        }
    }
}
